package com.example.designpatterns.behavioral.observer;

/**
 * 具体观察者类
 *
 * @author scott
 */
public class ConcreteObserver implements Observer {

    private String name;

    public ConcreteObserver(String name) {
        this.name = name;
    }

    @Override
    public void update() {
        System.out.println(name + " received notification and updated.");
    }

}
